package com.personnel_management.service;

import com.personnel_management.pojo.Staff;
import com.personnel_management.pojo.StaffVo;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface StaffService {
    //添加员工
    public Integer addStaff(Staff staff);
    //删除员工(通过员工id)
    public Integer deleteStaff(Integer id);
    //修改员工(修改姓名、电话、性别、生日、毕业院校)
    public Integer setStaff(Staff staff);
    //查询所有员工(多表查询) 显示出员工表的所有信息，部门表的名称、城市，职务表的职务名称、工资
    public List<StaffVo> selectAllStaffs();
    //查询员工(按照姓名、手机号、毕业院校、部门名称、职位、性别)
    public List<StaffVo> selectStaffs(StaffVo staff);
    //根据手机号查询员工是否存在
    public Boolean findStaff(String phone);
}
